<!--
 * @Author: 追逐的娃 kangchao_php@163.com
 * @Date: 2024-05-06 16:44:02
 * @LastEditors: 追逐的娃 kangchao_php@163.com
 * @LastEditTime: 2024-05-06 16:49:03
 * @FilePath: \huijie-admin\src\views\login\index.vue
 * @Description: 
 * 
-->
<template>
<div>
<el-button @click="login">登录</el-button>
</div>
</template>

<script setup>
import { ref } from 'vue'
import {useSystemStore} from '@/pinia'
import { useRouter }  from 'vue-router'

const {setToken,getUserInfo}  = useSystemStore()
const router = useRouter()
const login = () => {
    setToken('f3ae633d9e56c136bf646405e6943d16b0622a87')
    getUserInfo()
    router.push('/')
}
</script>

<style lang='less' scoped>

</style>